package com.msh.artascope.devcloud.client.enums.biz;

import com.msh.frame.client.define.StringDef;
import com.msh.frame.interfaces.ICodeDescEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum HealthTestTypeEnum implements ICodeDescEnum {
  /**
   *
   */
  READY("ready","就绪检测"),
  LIVE("live","存活检测"),
  ;

  private final String code;
  private final String desc;

  public static String codeDesc(String code){
    for(HealthTestTypeEnum e: values()){
      if(e.getCode().equals(code)){
        return e.getDesc();
      }
    }
    return StringDef.EMPTY;
  }

}